package com.zhiyun.mapper;

import com.zhiyun.domain.ExaminationRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExaminationRecordMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(ExaminationRecord record);

    ExaminationRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(ExaminationRecord record);

    ExaminationRecord selectByEidAndSidWithResponse(@Param("examinationId") Integer examinationId, @Param("studentId") Integer studentId);

    List<ExaminationRecord> selectByExaminationIdWithStudent(@Param("examinationId") Integer examinationId, @Param("courseId") Integer courseId);
}